<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/container/variant.hpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_e0f5f6345e438c73b9ae78ec2940718c.html">container</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#namespaces">命名空间</a> &#124;
<a href="#define-members">宏定义</a>  </div>
  <div class="headertitle"><div class="title">variant.hpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;type_traits&gt;</code><br />
<code>#include &lt;typeinfo&gt;</code><br />
<code>#include &lt;mutex&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
<code>#include &lt;stdexcept&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
variant.hpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d63/variant_8hpp__incl.png" border="0" usemap="#ainclude_2container_2variant_8hpp" alt=""/></div>
<map name="ainclude_2container_2variant_8hpp" id="ainclude_2container_2variant_8hpp">
<area shape="rect" title=" " alt="" coords="222,5,409,32"/>
<area shape="rect" title=" " alt="" coords="5,80,74,107"/>
<area shape="poly" title=" " alt="" coords="268,35,89,82,88,77,267,30"/>
<area shape="rect" title=" " alt="" coords="98,80,152,107"/>
<area shape="poly" title=" " alt="" coords="283,35,167,79,165,74,281,30"/>
<area shape="rect" title=" " alt="" coords="176,80,258,107"/>
<area shape="poly" title=" " alt="" coords="300,35,247,73,244,69,297,30"/>
<area shape="rect" title=" " alt="" coords="282,80,349,107"/>
<area shape="poly" title=" " alt="" coords="318,33,318,64,313,64,313,33"/>
<area shape="rect" title=" " alt="" coords="374,80,431,107"/>
<area shape="poly" title=" " alt="" coords="332,30,377,68,374,72,329,35"/>
<area shape="rect" title=" " alt="" coords="455,80,523,107"/>
<area shape="poly" title=" " alt="" coords="347,30,446,71,443,76,345,35"/>
<area shape="rect" title=" " alt="" coords="547,80,625,107"/>
<area shape="poly" title=" " alt="" coords="363,30,533,75,531,80,362,35"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件被哪些文件直接或间接地引用了:</div>
<div class="dyncontent">
<div class="center"><img src="../../df/d22/variant_8hpp__dep__incl.png" border="0" usemap="#ainclude_2container_2variant_8hppdep" alt=""/></div>
<map name="ainclude_2container_2variant_8hppdep" id="ainclude_2container_2variant_8hppdep">
<area shape="rect" title=" " alt="" coords="675,5,862,32"/>
<area shape="rect" href="../../d1/d81/command_8cpp.html" title=" " alt="" coords="5,435,162,461"/>
<area shape="poly" title=" " alt="" coords="660,35,526,55,454,70,384,88,323,109,273,133,240,161,232,175,229,191,229,284,225,311,216,335,201,358,184,379,144,413,109,436,106,432,141,409,180,375,197,355,211,333,220,309,224,284,224,190,227,173,236,157,270,128,321,104,383,83,453,65,525,50,660,29"/>
<area shape="rect" href="../../da/d26/dispatcher_8hpp.html" title=" " alt="" coords="520,171,706,213"/>
<area shape="poly" title=" " alt="" coords="755,46,728,84,695,125,642,172,638,168,691,121,724,81,751,43"/>
<area shape="rect" href="../../df/d6c/ssl_svr_itfc_8hpp.html" title=" " alt="" coords="770,435,960,461"/>
<area shape="poly" title=" " alt="" coords="772,48,772,191,771,284,774,307,780,330,802,372,829,407,853,432,849,436,825,411,798,375,775,332,769,308,766,284,766,191,766,48"/>
<area shape="rect" href="../../d2/d81/design_m_2event_detail_2event_8hpp.html" title=" " alt="" coords="495,80,680,123"/>
<area shape="poly" title=" " alt="" coords="728,41,635,82,633,77,725,36"/>
<area shape="rect" href="../../d5/d66/flyweight_8hpp.html" title=" " alt="" coords="807,88,1003,115"/>
<area shape="poly" title=" " alt="" coords="805,38,885,85,882,90,802,43"/>
<area shape="rect" href="../../d6/da0/observer_8hpp.html" title=" " alt="" coords="1028,88,1222,115"/>
<area shape="poly" title=" " alt="" coords="840,33,1069,85,1068,90,839,38"/>
<area shape="rect" href="../../d1/d7c/confdom_8hpp.html" title=" " alt="" coords="1246,88,1430,115"/>
<area shape="poly" title=" " alt="" coords="878,29,1046,50,1235,77,1277,85,1276,90,1234,83,1046,56,878,35"/>
<area shape="rect" href="../../df/d9a/design_m_2command_8hpp.html" title=" " alt="" coords="407,352,608,379"/>
<area shape="poly" title=" " alt="" coords="571,225,552,242,536,263,525,286,518,310,511,352,506,351,513,309,520,284,532,260,548,239,568,221"/>
<area shape="rect" href="../../d0/dfd/mainloop_8hpp.html" title=" " alt="" coords="546,261,731,304"/>
<area shape="poly" title=" " alt="" coords="625,227,635,260,630,262,620,229"/>
<area shape="poly" title=" " alt="" coords="418,384,175,429,140,437,138,431,174,424,417,379"/>
<area shape="poly" title=" " alt="" coords="579,380,809,431,808,437,578,385"/>
<area shape="rect" href="../../db/d1c/ssl_svr_epoll_8cpp.html" title=" " alt="" coords="607,608,784,635"/>
<area shape="poly" title=" " alt="" coords="551,384,578,402,603,425,624,459,632,490,639,522,654,559,687,606,682,609,649,561,634,523,627,492,619,461,599,428,575,406,548,388"/>
<area shape="rect" href="../../df/d4f/mandarava_2command_8hpp.html" title=" " alt="" coords="186,435,402,461"/>
<area shape="poly" title=" " alt="" coords="461,387,329,437,327,432,459,382"/>
<area shape="rect" href="../../d8/d9b/mandarava_2linux_2serial_8hpp.html" title=" " alt="" coords="427,427,588,469"/>
<area shape="poly" title=" " alt="" coords="510,394,510,426,505,426,505,394"/>
<area shape="rect" href="../../d8/d9b/ssl_connection_8hpp.html" title=" " alt="" coords="1055,525,1272,552"/>
<area shape="poly" title=" " alt="" coords="923,464,1122,522,1120,527,921,469"/>
<area shape="rect" href="../../d1/d29/ssl_svr_itfc_8cpp.html" title=" " alt="" coords="1226,608,1392,635"/>
<area shape="poly" title=" " alt="" coords="975,451,1063,458,1154,470,1233,489,1263,501,1285,515,1301,537,1309,563,1312,607,1307,608,1304,564,1296,539,1282,519,1261,506,1231,494,1153,475,1062,463,975,456"/>
<area shape="rect" href="../../de/ddb/ssl_svr_epoll_8hpp.html" title=" " alt="" coords="664,525,863,552"/>
<area shape="poly" title=" " alt="" coords="841,474,780,527,776,523,837,470"/>
<area shape="rect" href="../../d2/d84/sslserver_8hpp.html" title=" " alt="" coords="887,525,1032,552"/>
<area shape="poly" title=" " alt="" coords="891,470,948,523,944,527,887,474"/>
<area shape="rect" href="../../dd/da8/ssl_connection_8cpp.html" title=" " alt="" coords="1008,608,1202,635"/>
<area shape="poly" title=" " alt="" coords="1148,566,1116,609,1112,606,1143,563"/>
<area shape="poly" title=" " alt="" coords="1201,557,1288,605,1285,610,1198,562"/>
<area shape="poly" title=" " alt="" coords="745,566,708,610,704,606,741,562"/>
<area shape="rect" href="../../dc/d98/mandarava_2linux_2serial_8cpp.html" title=" " alt="" coords="438,517,577,560"/>
<area shape="poly" title=" " alt="" coords="510,485,510,517,505,517,505,485"/>
<area shape="poly" title=" " alt="" coords="593,315,529,354,527,349,590,310"/>
<area shape="poly" title=" " alt="" coords="600,137,610,170,604,171,595,138"/>
<area shape="poly" title=" " alt="" coords="541,134,523,152,510,172,501,196,496,221,495,272,500,318,507,351,501,352,495,319,489,273,491,220,496,194,505,169,519,148,537,131"/>
<area shape="rect" href="../../dd/dd6/flyweight_8cpp.html" title=" " alt="" coords="829,179,980,205"/>
<area shape="poly" title=" " alt="" coords="908,130,908,178,902,178,902,130"/>
<area shape="rect" href="../../d2/d37/epoll_8hpp.html" title=" " alt="" coords="1044,171,1206,213"/>
<area shape="poly" title=" " alt="" coords="1128,131,1128,170,1122,170,1122,131"/>
<area shape="rect" href="../../d2/da5/linux_8hpp.html" title=" " alt="" coords="860,269,1046,296"/>
<area shape="poly" title=" " alt="" coords="1072,223,979,271,976,266,1070,218"/>
<area shape="rect" href="../../da/d8b/epoll_8cpp.html" title=" " alt="" coords="1070,261,1209,304"/>
<area shape="poly" title=" " alt="" coords="1133,228,1139,261,1133,261,1128,229"/>
<area shape="rect" href="../../df/dbb/conffilexml_8hpp.html" title=" " alt="" coords="1235,179,1430,205"/>
<area shape="poly" title=" " alt="" coords="1339,130,1336,178,1331,178,1334,130"/>
<area shape="rect" href="../../db/d08/confdom_8cpp.html" title=" " alt="" coords="1454,179,1614,205"/>
<area shape="poly" title=" " alt="" coords="1381,119,1507,176,1505,181,1379,124"/>
<area shape="rect" href="../../db/da8/conffilexml_8cpp.html" title=" " alt="" coords="1247,269,1419,296"/>
<area shape="poly" title=" " alt="" coords="1336,221,1336,269,1330,269,1330,221"/>
</map>
</div>
</div>
<p><a href="../../d9/d7a/variant_8hpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d39/classwheels_1_1private_____1_1variant__base____.html">wheels::private__::variant_base__</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d33/classwheels_1_1private_____1_1variant____.html">wheels::private__::variant__&lt; T &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d54/classwheels_1_1variant.html">wheels::variant</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">实际暴露出来的接口类。这个类具有明确的类型，可以在其他容器中，比如vector中，使用  <a href="../../dd/d54/classwheels_1_1variant.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
命名空间</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></td></tr>
<tr class="memdesc:df/d8d/namespacewheels"><td class="mdescLeft">&#160;</td><td class="mdescRight">堆栈信息读取和保存记录 <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/dc1/namespacewheels_1_1private____.html">wheels::private__</a></td></tr>
<tr class="memdesc:d8/dc1/namespacewheels_1_1private____"><td class="mdescLeft">&#160;</td><td class="mdescRight">这个名字空间中的内容是底层实现部分。 <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a9a62f0c913a8edaf663007a48e467427" id="r_a9a62f0c913a8edaf663007a48e467427"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9a62f0c913a8edaf663007a48e467427">VARIANT_USE_TYPE_CHECK</a>&#160;&#160;&#160;(1)</td></tr>
<tr class="memdesc:a9a62f0c913a8edaf663007a48e467427"><td class="mdescLeft">&#160;</td><td class="mdescRight">任意类型数据的容器  <br /></td></tr>
<tr class="separator:a9a62f0c913a8edaf663007a48e467427"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a9a62f0c913a8edaf663007a48e467427" name="a9a62f0c913a8edaf663007a48e467427"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a62f0c913a8edaf663007a48e467427">&#9670;&#160;</a></span>VARIANT_USE_TYPE_CHECK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define VARIANT_USE_TYPE_CHECK&#160;&#160;&#160;(1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>任意类型数据的容器 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2023-5-8 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d9/d7a/variant_8hpp_source.html">variant.hpp</a> 第 <a class="el" href="../../d9/d7a/variant_8hpp_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
